#include "PusherActivateCommand.h"

PusherActivateCommand::PusherActivateCommand(Pusher* receiver): pusher(receiver)
{
}

PusherActivateCommand::PusherActivateCommand(const PusherActivateCommand& rhs): GameCommand(rhs), pusher(rhs.pusher)
{
}

PusherActivateCommand::~PusherActivateCommand()
{
}

void PusherActivateCommand::Execute()
{
	if (pusher)
	{
		pusher->Push();
	}
}

GameCommand* PusherActivateCommand::Clone() const
{
	return new PusherActivateCommand(*this);
}
